home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / lynx-2.4 / utils / inews / conf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-28  |  3.8 KB  |  147 lines

  1. /*
  2.  * Configuration file for nn version of nntp inews.  Written by
  3.  * Steve Simmons (scs@lokkur.dexter.mi.us), Dec 19, 1989.  Placed
  4.  * in the public domain by the author.  This file rationalizes
  5.  * the stock NNTP release of inews with the definitions for NN.
  6.  * The rationalization was done as of NN version 6.3.10 and NNTP
  7.  * version 1.5.7.
  8.  *
  9.  * You must edit this file to reflect your local configuration
  10.  * and environment.
  11.  *
  12.  * Follow the instructions given in the comments.  See the file
  13.  * README for more comments.
  14.  *
  15.  * $RCSfile: conf.h,v $    $Revision: 1.1 $
  16.  *
  17.  * $Author: news $    $Date: 89/12/20 17:43:03 $
  18.  *
  19.  * $State: Exp $    $Locker:  $
  20.  *
  21.  * $Log:    conf.h,v $
  22.  * Revision 1.1  89/12/20  17:43:03  news
  23.  * Initial revision
  24.  *
  25.  * May 1st, 1990, Kim Storm
  26.  * Modifications to get hostname for free (see README.NN)
  27.  */
  28.  
  29. #ifndef    NNINEWSCONF_H
  30. #define    NNINEWSCONF_H
  31.  
  32. /* #include    "config.h" */
  33. /*
  34.  *  added by Montulli@ukanaix.cc.ukans.edu
  35.  *  to replace the need for config.h
  36.  */
  37.  
  38. #include <stdio.h>
  39. #include <ctype.h>
  40.  
  41.  
  42. /*
  43.  *      Define NNTP_SERVER to the name of a file containing the name of the
  44.  *      nntp server.
  45.  *
  46.  *      It is vital that both the nnmaster and all nn users on a machine
  47.  *      uses the same nntp server, because the nn database is synchronized
  48.  *      with a specific news active file.
  49.  *
  50.  *      If the file name does not start with a slash, it is relative to
  51.  *      LIB_DIRECTORY defined below.
  52.  *      NOTE: If you plan to use the included inews, it MUST be a full pathname
  53.  */
  54.  
  55. #define NNTP_SERVER     "/usr/local/etc/nntpserver"
  56. /* #define NNTP_SERVER     "/usr/lib/nntp_server" */
  57.  
  58.  
  59. #ifndef NNTP
  60. /* WHY DO YOU WANT TO MAKE MINI-INEWS WHEN YOU DONT USE NNTP */
  61. #endif
  62.  
  63. /*
  64.  *  Define your local domain name.  You *must* define something, either
  65.  *  here, in config.h, or elsewhere according to your local standards.
  66.  *  See comment below on HIDDENNET.
  67.  *
  68.  *  You are not strictly *required* to have a domain name; nonetheless
  69.  *  it's a good idea.  If you are on the Internet or otherwise have a
  70.  *  valid domain name, use it (except see HIDDENNET below).  If you're
  71.  *  a uucp-only site, use ".uucp" for now and go get a real name.
  72.  *
  73.  *  Note that if you imbed your domain name in the hostname and you don't
  74.  *  use HIDDENNET, you may get a period on the end of your fully qualified
  75.  *  domian name (FQDN) in postings.  In that case, use HIDDENNET and
  76.  *  define DOMAIN to be your FQDN.
  77.  */
  78.  
  79. #define    DOMAIN    "cc.ukans.edu" 
  80.  
  81. /*
  82.  *  If you define this, the hostname will not appear in the posting
  83.  *  data except on the path.  Items will be from user@DOMAIN (with
  84.  *  DOMAIN as defined above).  If you don't want this, comment it out.
  85.  */
  86.  
  87. /* #define    HIDDENNET */
  88.  
  89. /*
  90.  *  There are a number of ways that inews will try to figure out the
  91.  *  host name.  When used with nn, the definitions in ../config.h
  92.  *  will specify this, so you don't have to do anything special here.
  93.  */
  94.  
  95. /*
  96.  *  If you don't have bcopy, the following define will make one...
  97.  */
  98.  
  99. /* #define USG            /* */
  100.  
  101. /*
  102.  *  You shouldn't need to touch anything below this line.
  103.  */
  104.  
  105. /*
  106.  *  This is the code needed to get the proper hostname.
  107.  *
  108.  *    nn provides a gethostname function for generic use.
  109.  *    we fake uname() for inews.c using this:
  110.  */
  111.  
  112. #define    uname(str) gethostname(str, sizeof(str))
  113.  
  114. /*
  115.  *  Stock nntp inews and nn use some different #define names for the
  116.  *  same general functions.  This synchronises them.
  117.  */
  118.  
  119. #define    SERVER_FILE    NNTP_SERVER
  120.  
  121. /*
  122.  *    Reverse engineering (nn got this the other way around)....
  123.  */
  124.  
  125. #ifdef HAVE_STRCHR
  126. #define    rindex strrchr
  127. #define index strchr
  128. #endif
  129.  
  130. #ifdef NO_BZERO
  131. #ifndef USG
  132. #define USG
  133. #endif
  134. #endif
  135.  
  136. /*
  137.  *  Sanity checks (You know.  Checks you get from Sanity Claus)
  138.  */
  139.  
  140. #ifdef    HIDDENNET
  141. #ifndef    DOMAIN
  142. YOU_BLEW_IT READ_THE_INSTRUCTIONS_AGAIN
  143. #endif
  144. #endif
  145.  
  146. #endif    /* of ifdef NNINEWSCONF_H */
  147.